package com.hoshiicloud.saleorder.feign.hystrix;

import com.hoshiicloud.common.rpc.Response;
import com.hoshiicloud.saleorder.dto.PlatStoreDTO;
import com.hoshiicloud.saleorder.feign.PlatStoreService;
import com.hoshiicloud.user.dto.platform.PlatDTO;
import com.hoshiicloud.user.entity.store.PlatStore;
import java.util.List;

/**
 * @author Markerccc
 * @date 2019/8/26 - 14:39
 */
public class HystrixPlatStoreFeignFallback implements PlatStoreService {

    @Override
    public Response<PlatStoreDTO> getStore(Long id) {
        return Response.failed("获取店铺失败");
    }

    @Override
    public Response<Boolean> identifyMainStoreById(Long id) {
        return Response.failed("判断是否为总店失败");
    }

    @Override
    public Response<List<PlatStore>> getAllBranchStore(Long id) {
        return Response.failed("获取所有分店失败");
    }

    @Override
    public Response<PlatDTO> getStoreAndFormByStoreId(Long storeId) {
        return Response.failed("获取店铺和平台信息失败");
    }
}
